Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: web service - consumer - how to use class(es)?
Feedback Type: Question
Product Area: Domino Server
Technical Area: Functionality
Platform: Windows XP client
Release: 8.5
Reproducible: Not applicable

I've written an LotusScript agent that uses a web service consumer to consume a .Net web service.

I'm having a bit of trouble in pushing data to the .Net web service.

The trouble I'm having with is to do with using class objects.

Basics of my agent's code:

Sub pushData( )

On Error Goto myErrorHandler

currentLog.LogAction "Sub: pushData() - started"

Dim webService As New IAppService_n1

Dim results_xsd As New XSD_String( )

Dim dataObj As New NAV_Data_n1 ' NAV_Data_n1 has the class object

Dim tmpValue As New XSD_String( )

tmpValue.setValueFromString( "INSERT" )
Set dataObj.ActionType = tmpValue

tmpValue.setValueFromString( "123" )
Set dataObj.Ref = tmpValue

tmpValue.setValueFromString( "Some Data" )
Set dataObj.DataName = tmpValu

set results_xsd = webService.receiveData( dataObj )

Print "results: " + results_xsd.GetValueAsString

Goto quitMe

myErrorHandler:

currentLog.LogError Err , "Line: " + Cstr( Erl ) + ", code: " + Cstr( Err ) + ", msg: " + Error

Resume quitMe

quitMe:

currentLog.LogAction "Sub: pushData() - finished"

End Sub

The line "set results_xsd = webService.receiveData( dataObj )" is causing me headaches - the error message that I receive is:
"Code: 4747, msg: The Web Service IAppService_n1 method receiveData has returned a fault."

Can someone give me an idea how to resolve this error?


Feedback number WEBB7VBNJR created by ~Lorraine Desresaader on 08/27/2009

Status: Open
Comments:

web service - consumer - how to use... (~Lorraine Desre... 27.Aug.09)
. . Code is ok (~Lorraine Desre... 31.Aug.09)
. . . . Idea (~Miriam Desgero... 11.Dec.09)
. . . . WS_FAULT usage (~Sanjay Nonjumi... 17.Oct.12)
. . You Can Use Service.GetLastFault (~James Nimfreet... 26.Dec.12)
. . . . Thanks (~Sanjay Nonjumi... 14.Feb.13)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS